<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"><xsl:template match="USERS"><SERVICE_ASSIGNMENTS><xsl:for-each select="USER/SERVICES/SERVICE"><ASSIGNMENT><SERVICE_ID><xsl:value-of select="SERVICE_ID"/></SERVICE_ID><USER_ID><xsl:value-of select="ancestor::*[2]/USER_ID"/></USER_ID><EMAIL_NOTIFICATION><xsl:value-of select="EMAIL_NOTIFICATION"/></EMAIL_NOTIFICATION><STATUS><xsl:value-of select="ancestor::*[2]/STATUS"/></STATUS></ASSIGNMENT></xsl:for-each></SERVICE_ASSIGNMENTS></xsl:template></xsl:stylesheet>
